<?php

use yii\db\Schema;
use yii\db\Migration;

class m160406_094949_add_solution_balance_cost_before_edit_field extends Migration
{
    public function up()
    {
        $sql = <<<FINE
alter table {{%solution_balance}} add column cost_before_edit decimal(12,2) not null default '0.00' comment 'for pk' after cost_today;
FINE;
        $this->execute($sql);
    }

    public function down()
    {
        return true;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
